package com.example.phonestore.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    @RequestMapping("/goLogin")
    public String goLogin(){
        return "login";
    }

    @RequestMapping("/goRegister")
    public String goRegister(){
        return "register";
    }

    @RequestMapping("/goIndex")
    public String goIndex(){
        return "index";
    }

    @RequestMapping("/goCart")
    public String goCart(){
        return "cart";
    }

    @RequestMapping("/goOrders")
    public String goOrders(){
        return "index";
    }

    @RequestMapping("/goPassword")
    public String goPassword(){
        return "password";
    }

    @RequestMapping("/goUserdata")
    public String goUserdata(){
        return "userdata";
    }

    @RequestMapping("/goAddress")
    public String goAddress(){
        return "address";
    }

    @RequestMapping("/goShowAddress")
    public String goGetAddress(){
        return "showaddress";
    }

    @RequestMapping("/goProductOne")
    public String goProductOne(){
        return "product";
    }

    @RequestMapping("/goSearch")
    public String goSearch(){
        return "search";
    }
}
